package com.management.po;

import java.sql.Timestamp;

/**
 * @author zwh
 * @date 2021/10/28
 * 人员与公司关系表
 */
public class UserAndCompany {
    /**
     * 人员与公司编号
     */
    private int userAndCompanyId;

    /**
     * 人员编号
     */
    private int userId;
    /**
     * 公司编号
     */
    private int companyId;
    /**
     * 职员部门
     */
    private int deptId;
    /**
     * 职员科室
     */
    private int sectionId;
    /**
     * 职员职位
     */
    private int postId;
    /**
     * 入职时间
     */
    private Timestamp entryTime;
    /**
     * 合同到期时间
     */
    private Timestamp expirationDate;
    /**
     * 基本工资
     */
    private double salary;
    /**
     * 职工状态
     */
    private String empStateName;

    @Override
    public String toString() {
        return "UserAndCompany{" +
                "userAndCompanyId=" + userAndCompanyId +
                ", userId=" + userId +
                ", companyId=" + companyId +
                ", deptId=" + deptId +
                ", sectionId=" + sectionId +
                ", postId=" + postId +
                ", entryTime=" + entryTime +
                ", expirationDate=" + expirationDate +
                ", salary=" + salary +
                ", empStateName='" + empStateName + '\'' +
                '}';
    }

    public UserAndCompany() {
    }

    public UserAndCompany(int userAndCompanyId, int userId, int companyId, int deptId, int sectionId, int postId, Timestamp entryTime, Timestamp expirationDate, double salary, String empStateName) {
        this.userAndCompanyId = userAndCompanyId;
        this.userId = userId;
        this.companyId = companyId;
        this.deptId = deptId;
        this.sectionId = sectionId;
        this.postId = postId;
        this.entryTime = entryTime;
        this.expirationDate = expirationDate;
        this.salary = salary;
        this.empStateName = empStateName;
    }

    public int getUserAndCompanyId() {
        return userAndCompanyId;
    }

    public void setUserAndCompanyId(int userAndCompanyId) {
        this.userAndCompanyId = userAndCompanyId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getCompanyId() {
        return companyId;
    }

    public void setCompanyId(int companyId) {
        this.companyId = companyId;
    }

    public int getDeptId() {
        return deptId;
    }

    public void setDeptId(int deptId) {
        this.deptId = deptId;
    }

    public int getSectionId() {
        return sectionId;
    }

    public void setSectionId(int sectionId) {
        this.sectionId = sectionId;
    }

    public int getPostId() {
        return postId;
    }

    public void setPostId(int postId) {
        this.postId = postId;
    }

    public Timestamp getEntryTime() {
        return entryTime;
    }

    public void setEntryTime(Timestamp entryTime) {
        this.entryTime = entryTime;
    }

    public Timestamp getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(Timestamp expirationDate) {
        this.expirationDate = expirationDate;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getEmpStateName() {
        return empStateName;
    }

    public void setEmpStateName(String empStateName) {
        this.empStateName = empStateName;
    }
}
